package com.example.bee_work_3.collect;

import com.example.bee_work_3.net_request.WS;

public class Collect {
    public static void add(int id, String cookiesName, WS.CallBack callBack) {
        WS.load("https://www.wanandroid.com/lg/collect/" + id + "/json")
                .loadCookies(cookiesName)
                .addCallBack(null)
                .post();

        //MyOkHttp myOkHttp = new MyOkHttp("https://www.wanandroid.com/lg/collect/" + id + "/json", callBack, null);
        //myOkHttp.postWithLoadCookies(cookiesName);
    }

    public static void delete(int id, String cookiesName, WS.CallBack callBack) {
        WS.load("https://www.wanandroid.com/lg/uncollect_originId/" + id + "/json")
                .addCallBack(callBack)
                .addParam(new String[][]{{"id", id + ""}})
                .loadCookies(cookiesName)
                .post();
    }
}
